home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
net
/
dnet2_10_13.lha
/
DNet
/
Amiga
/
Sourcen.lha
/
lib
/
dexec.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-14
|
577b
|
30 lines
/*
* DExec.C
*
* Request the DNet driver to execute a command. Due to problems with
* the Lattice fork*() calls we cannot Execute() from the server process.
*/
#include "lib.h"
int
DExec(_chan, command)
void *_chan;
char *command;
{
IOSTD ior;
CHANN *chan = (CHANN *)_chan;
PORT *replyport = CreatePort(NULL, 0);
ior.io_Command = DNCMD_EXEC;
ior.io_Unit = 0;
ior.io_Offset = (long)command;
ior.io_Message.mn_ReplyPort = replyport;
PutMsg(chan->dnetport, (MSG *)&ior);
WaitMsg(&ior);
DeletePort(replyport);
return(1);
}